package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.OrganizationDepartmentPrincipal;
import com.xmy.cultivate.entity.TeacherPoint;
import com.xmy.cultivate.mapper.OrganizationDepartmentPrincipalMapper;
import com.xmy.cultivate.service.IOrganizationDepartmentPrincipalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 部门负责人详情 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-28
 */
@Service
public class OrganizationDepartmentPrincipalServiceImpl extends ServiceImpl<OrganizationDepartmentPrincipalMapper, OrganizationDepartmentPrincipal> implements IOrganizationDepartmentPrincipalService {

    @Autowired
    OrganizationDepartmentPrincipalMapper organizationDepartmentPrincipalMapper;

    public IPage<OrganizationDepartmentPrincipal> findAll(IPage<OrganizationDepartmentPrincipal> page, String yearPart, String quarterNum,String staffName,String departmentId,String schoolId,String fiducialSetId,String type, String isDescOrAsc) {
        return organizationDepartmentPrincipalMapper.findAll(page, yearPart, quarterNum,  staffName, departmentId, schoolId, fiducialSetId,type,isDescOrAsc);
    }

    public IPage<OrganizationDepartmentPrincipal> details( IPage<OrganizationDepartmentPrincipal> page, String yearPart, String quarterNum,String staffId,String departmentId,String schoolId,String type,String lessonNum,String fiducialSetId){
        return organizationDepartmentPrincipalMapper.details(page, yearPart, quarterNum, staffId, departmentId, schoolId, type, lessonNum,fiducialSetId);
    }

}
